package com.aabte.mybatis.bean;

import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;

@Data
@Alias("Employee") // 使用Mybatis注解设置别名
public class Employee implements Serializable {

    private Integer id;
    private String lastName;
    private String gender;
    private String email;

    private EmployeeStatus status = EmployeeStatus.LOGOUT;

    public Employee() {
    }

    public Employee(Integer id, String lastName, String gender, String email) {
        this.id = id;
        this.lastName = lastName;
        this.gender = gender;
        this.email = email;
    }

    public Employee(String lastName, String gender, String email) {
        this.lastName = lastName;
        this.gender = gender;
        this.email = email;
    }
}
